﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;
using JasonPopupDemo.Data;
using System.Diagnostics;

namespace JsonTest1.UI
{
    public partial class SearchPage : PhoneApplicationPage
    {

        private static MainItem _mainItem;
        public static void NavPage(PhoneApplicationPage page,MainItem mainItem)
        {
            page.NavigationService.Navigate(new Uri("/UI/SearchPage.xaml", UriKind.Relative));
            _mainItem = mainItem;
        }

        public SearchPage()
        {
            InitializeComponent();
        }

         private void PhoneApplicationPage_Loaded(object sender, RoutedEventArgs e)
         {
             Debug.WriteLine(_mainItem.Type + _mainItem.Title);
         }
    }
}